<?php
/*
 * File Cursus.php for project Rijlesplanner.nl
 * Created on Jan 22, 2008 at 9:23:09 PM by Ivar Pruijn
 */
class Cursus {
  
	// Properties:
	public	$Id;
	public $LeerlingId;
	public $PakketId;
	public $PakketNaam;
	public $Start;
	public $Stop;

	// Methods:

	/**
	 * void __construct ()
	 * This is the constructor method for the User class.
	 */
	public function __construct() {
   	}
   	
   	public function Cursus(array $atts=NULL) {
		$this->ConstructFromArray($atts);
	}
	
	public function getId() {
	  return $this->Id;
	}

	public function setId($newVal) {
		$this->Id = $newVal;
	}

	public function getLeerlingId() {
	  return $this->LeerlingId;
	}

	public function setLeerlingId($newVal) {
		$this->LeerlingId = $newVal;
	}

	public function getPakketId() {
	  return $this->PakketId;
	}

	public function setPakketId($newVal) {
		$this->PakketId = $newVal;
	}

	public function getPakketNaam() {
	  return $this->PakketNaam;
	}

	public function setPakketNaam($newVal) {
		$this->PakketNaam = $newVal;
	}

	public function getStart() {
	  return $this->Start;
	}

	public function setStart($newVal) {
		$this->Start = $newVal;
	}

	public function getStop() {
	  return $this->Stop;
	}

	public function setStop($newVal) {
		$this->Stop = $newVal;
	}

	/**
	 * void ConstructFromArray ([array attributes])
	 * This method, if an array is given as the argument, will
	 * create properties in the current object named after the
	 * keys of the array, and set the properties to the corresponding
	 * values from the array.
	 */
	private function ConstructFromArray (array $atts=NULL) {
		if (is_array($atts)) {
			while (list($key, $value) = each($atts)) {
				$this->$key = $value;
			}
		}
	}

	public function __destruct() {
//		global $logger;
//    	$logger->log("Destroying Cursus " . $this->__toString() . "!\n",PEAR_LOG_INFO);
   	}
   	
   	public function __toString() {
        return $this->PakketNaam;
    }
}
?>